using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Evaluation3.uicomponent;

 
    public partial class uicontrol_UITabpanel : System.Web.UI.UserControl
    {
        public ArrayList Children = new ArrayList();

        protected int SelectedTabIndex = 0;
        protected ArrayList Tabs = new ArrayList();
        protected ArrayList Contents = new ArrayList();
        protected PlaceHolder h = new PlaceHolder();
        protected uiPanel p1 = new uiPanel();

        protected void Page_Load(object sender, EventArgs e)
        {

            p1.ID = "tab 1";
            uiPanel p2 = new uiPanel();
            p2.ID = "tab 2";
            uiPanel p3 = new uiPanel();
            p3.ID = "tab 3";
            uiPanel p4 = new uiPanel();
            p4.ID = "tab 4";

            h.ID = "holdertest1";

            addChild(p1);

            //h.Controls.Add(p1);
            addChild(p2);
            addChild(p3);
            addChild(p4);

            Session["tabNum"] = getChildren();
            //Controls.Add(h);
            //Controls.Add(new Panel());

        }
        public int getSelectedIndex() { return SelectedTabIndex; }
        public void setSelectedTab(int index)
        {
            SelectedTabIndex = index;
        }
        public Control addChild(Control c)
        {
            Children.Add(c);
            return c;

        }



        public ArrayList getChildren() { return Children; }
    }
 
